package com.lianlu.res;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p></p >
 *
 * @author youyoukele
 * @version 1.0
 * @date 2024/5/14 17:22
 */
@Data
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class BaseResponse {

    /**
     * API状态码
     * https://www.shlianlu.com/console/document/errorCode
     */
    private String status;
    private String message;
    private Long timestamp;

    public boolean isSuccess(){
        return "00".equals(status);
    }
}

